#ifndef __VARIABLELIST_H__
#define __VARIABLELIST_H__
#include <QString>
#include <QList>
#include <QTableView>
#include <QStandardItemModel>
#include "variable.h"

class VariableList : public QTableView
{
	public :
		VariableList(QWidget *parent);
		void put(Variable *);
		double getValFromName(QString,bool&);
		QString getExprFromName(QString,bool&);
		void remove(QString);
	
	protected :
		//void paintEvent(QPaintEvent *event);
		
	private : 
		QList<Variable> List;
		QStandardItemModel *model;
		void UpdateModel();
	
		QHeaderView *Vertical;
		QHeaderView *Horizontal;
};
#endif // __VARIABLELIST_H__
